package jp.co.apl.haven.ao.entity;

import jp.co.apl.haven.generated.HavenProtos.InputType;
import net.java.ao.Entity;
import net.java.ao.OneToMany;
import net.java.ao.Preload;
import net.java.ao.schema.NotNull;
import net.java.ao.schema.Table;
import net.java.ao.schema.Unique;

@Table("basic_info_item")
@Preload({ "basicInfoItemId", "title", "inputType", "sortOrder" })
public interface BasicInfoItemEntity extends Entity {

    @Unique
    Integer getBasicInfoItemId();

    void setBasicInfoItemId(Integer basicInfoItemId);

    @NotNull
    String getTitle();

    void setTitle(String title);

    InputType getInputType();

    void setInputType(InputType inputType);

    Integer getSortOrder();

    void setSortOrder(Integer sortOrder);

    @OneToMany
    BasicInfoSelectionItemEntity[] getBasicInfoSelectionItems();

    void setEnquete(EnqueteEntity enquete);

}
